<template>
  <van-search shape="round" v-model="value" placeholder="请输入搜索关键字" @search="OnSearch" @cancel="OnCancel"></van-search>
  <home-swipper />
</template>
<script setup>
  import { ref } from "vue"
  import { showToast } from "vant"
  import HomeSwipper from "../components/HomeSwipper.vue"
  
  const value = ref("")
  const OnSearch = (val) => {
    showToast(val)
  }
  const OnCancel = () => {
    showToast("取消")
  }
</script>